<?php

class Mlogin extends CI_Model {

    function __construct() {
        parent::__construct();
        $this->load->database();
    }

    function __destruct() {
        $this->db->close();
    }
    public function getusers($username,$password){
        $this->db->where("admin_username",$username);
          $this->db->where("admin_password",$password);
           $query = $this->db->get("admin");
             return $query->num_rows();
    }
}